<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/vfs/smbfs/helpers/include/nameserv.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/nameserv.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/nameserv.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/vfs/smbfs/helpers/include/nameserv.h'  /> */</em>
<hr />
<h2 class='header'><a href='src--vfs--smbfs--helpers--include--includes.h.html#L434' title='Included from 434 in src/vfs/smbfs/helpers/include/includes.h.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L2' title='Defined at 2 in src/vfs/smbfs/helpers/include/nameserv.h.'>_NAMESERV_H_</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L1' title='Referred from 1 in src/vfs/smbfs/helpers/include/nameserv.h.'>_NAMESERV_H_</a>
<a id='L3' name='L3'></a>   3 <em class='comment'>/*</em>
<a id='L4' name='L4'></a>   4 <em class='comment'>   Unix SMB/Netbios implementation.</em>
<a id='L5' name='L5'></a>   5 <em class='comment'>   Version 1.9.</em>
<a id='L6' name='L6'></a>   6 <em class='comment'>   NBT netbios header - version 2</em>
<a id='L7' name='L7'></a>   7 <em class='comment'> */</em>
<a id='L8' name='L8'></a>   8 
<a id='L9' name='L9'></a>   9 <em class='sharp'>#define</em> PERMANENT_TTL 0
<a id='L10' name='L10'></a>  10 
<a id='L11' name='L11'></a>  11 <em class='comment'>/* NTAS uses 2, NT uses 1, WfWg uses 0 */</em>
<a id='L12' name='L12'></a>  12 <em class='sharp'>#define</em> MAINTAIN_LIST    2
<a id='L13' name='L13'></a>  13 <em class='sharp'>#define</em> ELECTION_VERSION 1
<a id='L14' name='L14'></a>  14 
<a id='L15' name='L15'></a>  15 <em class='sharp'>#define</em> <a href='../R/MAX_DGRAM_SIZE.html' title='Multiple referred from 3 places.'>MAX_DGRAM_SIZE</a> (576)    <em class='comment'>/* tcp/ip datagram limit is 576 bytes */</em>
<a id='L16' name='L16'></a>  16 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L710' title='Referred from 710 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>MIN_DGRAM_SIZE</a> 12
<a id='L17' name='L17'></a>  17 
<a id='L18' name='L18'></a>  18 <em class='comment'>/*********************************************************</em>
<a id='L19' name='L19'></a>  19 <em class='comment'> Types of reply packet.</em>
<a id='L20' name='L20'></a>  20 <em class='comment'>**********************************************************/</em>
<a id='L21' name='L21'></a>  21 
<a id='L22' name='L22'></a>  22 <strong class='reserved'>enum</strong> netbios_reply_type_code
<a id='L23' name='L23'></a>  23 <em class='brace'>{</em> NMB_QUERY, NMB_STATUS, NMB_REG, NMB_REG_REFRESH,
<a id='L24' name='L24'></a>  24     NMB_REL, NMB_WAIT_ACK, NMB_MULTIHOMED_REG,
<a id='L25' name='L25'></a>  25     WINS_REG, WINS_QUERY
<a id='L26' name='L26'></a>  26 <em class='brace'>}</em>;
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <em class='comment'>/* From rfc1002, 4.2.1.2 */</em>
<a id='L29' name='L29'></a>  29 <em class='comment'>/* Question types. */</em>
<a id='L30' name='L30'></a>  30 <em class='sharp'>#define</em> QUESTION_TYPE_NB_QUERY  0x20
<a id='L31' name='L31'></a>  31 <em class='sharp'>#define</em> QUESTION_TYPE_NB_STATUS 0x21
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33 <em class='comment'>/* Question class */</em>
<a id='L34' name='L34'></a>  34 <em class='sharp'>#define</em> QUESTION_CLASS_IN  0x1
<a id='L35' name='L35'></a>  35 
<a id='L36' name='L36'></a>  36 <em class='comment'>/* Opcode definitions */</em>
<a id='L37' name='L37'></a>  37 <em class='sharp'>#define</em> NMB_NAME_QUERY_OPCODE       0x0
<a id='L38' name='L38'></a>  38 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L913' title='Referred from 913 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>NMB_NAME_REG_OPCODE</a>         0x05        <em class='comment'>/* see rfc1002.txt 4.2.2,3,5,6,7,8 */</em>
<a id='L39' name='L39'></a>  39 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L914' title='Referred from 914 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>NMB_NAME_RELEASE_OPCODE</a>     0x06        <em class='comment'>/* see rfc1002.txt 4.2.9,10,11 */</em>
<a id='L40' name='L40'></a>  40 <em class='sharp'>#define</em> NMB_WACK_OPCODE             0x07        <em class='comment'>/* see rfc1002.txt 4.2.16 */</em>
<a id='L41' name='L41'></a>  41 <em class='comment'>/* Ambiguity in rfc1002 about which of these is correct. */</em>
<a id='L42' name='L42'></a>  42 <em class='comment'>/* WinNT uses 8 by default but can be made to use 9. */</em>
<a id='L43' name='L43'></a>  43 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L915' title='Referred from 915 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>NMB_NAME_REFRESH_OPCODE_8</a>   0x08        <em class='comment'>/* see rfc1002.txt 4.2.4 */</em>
<a id='L44' name='L44'></a>  44 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L916' title='Referred from 916 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>NMB_NAME_REFRESH_OPCODE_9</a>   0x09        <em class='comment'>/* see rfc1002.txt 4.2.4 */</em>
<a id='L45' name='L45'></a>  45 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L917' title='Referred from 917 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>NMB_NAME_MULTIHOMED_REG_OPCODE</a> 0x0F     <em class='comment'>/* Invented by Microsoft. */</em>
<a id='L46' name='L46'></a>  46 
<a id='L47' name='L47'></a>  47 <em class='comment'>/* XXXX what about all the other types?? 0x1, 0x2, 0x3, 0x4, 0x8? */</em>
<a id='L48' name='L48'></a>  48 
<a id='L49' name='L49'></a>  49 <em class='comment'>/* Resource record types. rfc1002 4.2.1.3 */</em>
<a id='L50' name='L50'></a>  50 <em class='sharp'>#define</em> RR_TYPE_A                  0x1
<a id='L51' name='L51'></a>  51 <em class='sharp'>#define</em> RR_TYPE_NS                 0x2
<a id='L52' name='L52'></a>  52 <em class='sharp'>#define</em> RR_TYPE_NULL               0xA
<a id='L53' name='L53'></a>  53 <em class='sharp'>#define</em> RR_TYPE_NB                0x20
<a id='L54' name='L54'></a>  54 <em class='sharp'>#define</em> RR_TYPE_NBSTAT            0x21
<a id='L55' name='L55'></a>  55 
<a id='L56' name='L56'></a>  56 <em class='comment'>/* Resource record class. */</em>
<a id='L57' name='L57'></a>  57 <em class='sharp'>#define</em> RR_CLASS_IN                0x1
<a id='L58' name='L58'></a>  58 
<a id='L59' name='L59'></a>  59 <em class='comment'>/* NetBIOS flags */</em>
<a id='L60' name='L60'></a>  60 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L74' title='Referred from 74 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_GROUP</a>  0x80
<a id='L61' name='L61'></a>  61 <em class='sharp'>#define</em> NB_PERM   0x02
<a id='L62' name='L62'></a>  62 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L81' title='Referred from 81 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_ACTIVE</a> 0x04
<a id='L63' name='L63'></a>  63 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L82' title='Referred from 82 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_CONFL</a>  0x08
<a id='L64' name='L64'></a>  64 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L83' title='Referred from 83 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_DEREG</a>  0x10
<a id='L65' name='L65'></a>  65 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L75' title='Referred from 75 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_BFLAG</a>  0x00          <em class='comment'>/* Broadcast node type. */</em>
<a id='L66' name='L66'></a>  66 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L76' title='Referred from 76 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_PFLAG</a>  0x20          <em class='comment'>/* Point-to-point node type. */</em>
<a id='L67' name='L67'></a>  67 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L77' title='Referred from 77 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_MFLAG</a>  0x40          <em class='comment'>/* Mixed bcast &amp; p-p node type. */</em>
<a id='L68' name='L68'></a>  68 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L78' title='Referred from 78 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_HFLAG</a>  0x60          <em class='comment'>/* Microsoft 'hybrid' node type. */</em>
<a id='L69' name='L69'></a>  69 <em class='sharp'>#define</em> <a href='../R/NB_NODETYPEMASK.html' title='Multiple referred from 4 places.'>NB_NODETYPEMASK</a> 0x60
<a id='L70' name='L70'></a>  70 <em class='comment'>/* Mask applied to outgoing NetBIOS flags. */</em>
<a id='L71' name='L71'></a>  71 <em class='sharp'>#define</em> NB_FLGMSK 0xE0
<a id='L72' name='L72'></a>  72 
<a id='L73' name='L73'></a>  73 <em class='comment'>/* NetBIOS flag identifier. */</em>
<a id='L74' name='L74'></a>  74 <em class='sharp'>#define</em> NAME_GROUP(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)  ((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L60' title='Defined at 60 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_GROUP</a>)
<a id='L75' name='L75'></a>  75 <em class='sharp'>#define</em> NAME_BFLAG(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>) (((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L69' title='Defined at 69 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_NODETYPEMASK</a>) == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L65' title='Defined at 65 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_BFLAG</a>)
<a id='L76' name='L76'></a>  76 <em class='sharp'>#define</em> NAME_PFLAG(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>) (((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L69' title='Defined at 69 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_NODETYPEMASK</a>) == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L66' title='Defined at 66 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_PFLAG</a>)
<a id='L77' name='L77'></a>  77 <em class='sharp'>#define</em> NAME_MFLAG(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>) (((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L69' title='Defined at 69 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_NODETYPEMASK</a>) == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L67' title='Defined at 67 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_MFLAG</a>)
<a id='L78' name='L78'></a>  78 <em class='sharp'>#define</em> NAME_HFLAG(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>) (((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L69' title='Defined at 69 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_NODETYPEMASK</a>) == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L68' title='Defined at 68 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_HFLAG</a>)
<a id='L79' name='L79'></a>  79 
<a id='L80' name='L80'></a>  80 <em class='comment'>/* Samba name state for a name in a namelist. */</em>
<a id='L81' name='L81'></a>  81 <em class='sharp'>#define</em> NAME_IS_ACTIVE(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)        ((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L62' title='Defined at 62 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_ACTIVE</a>)
<a id='L82' name='L82'></a>  82 <em class='sharp'>#define</em> NAME_IN_CONFLICT(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)      ((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L63' title='Defined at 63 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_CONFL</a>)
<a id='L83' name='L83'></a>  83 <em class='sharp'>#define</em> NAME_IS_DEREGISTERING(<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>) ((<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>)-&gt;<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>.<a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a> &amp; <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L64' title='Defined at 64 in src/vfs/smbfs/helpers/include/nameserv.h.'>NB_DEREG</a>)
<a id='L84' name='L84'></a>  84 
<a id='L85' name='L85'></a>  85 <em class='comment'>/* Error codes for NetBIOS requests. */</em>
<a id='L86' name='L86'></a>  86 <em class='sharp'>#define</em> FMT_ERR   0x1           <em class='comment'>/* Packet format error. */</em>
<a id='L87' name='L87'></a>  87 <em class='sharp'>#define</em> SRV_ERR   0x2           <em class='comment'>/* Internal server error. */</em>
<a id='L88' name='L88'></a>  88 <em class='sharp'>#define</em> NAM_ERR   0x3           <em class='comment'>/* Name does not exist. */</em>
<a id='L89' name='L89'></a>  89 <em class='sharp'>#define</em> IMP_ERR   0x4           <em class='comment'>/* Request not implemented. */</em>
<a id='L90' name='L90'></a>  90 <em class='sharp'>#define</em> RFS_ERR   0x5           <em class='comment'>/* Request refused. */</em>
<a id='L91' name='L91'></a>  91 <em class='sharp'>#define</em> ACT_ERR   0x6           <em class='comment'>/* Active error - name owned by another host. */</em>
<a id='L92' name='L92'></a>  92 <em class='sharp'>#define</em> CFT_ERR   0x7           <em class='comment'>/* Name in conflict error. */</em>
<a id='L93' name='L93'></a>  93 
<a id='L94' name='L94'></a>  94 <em class='sharp'>#define</em> REFRESH_TIME (15*60)
<a id='L95' name='L95'></a>  95 <em class='sharp'>#define</em> NAME_POLL_REFRESH_TIME (5*60)
<a id='L96' name='L96'></a>  96 <em class='sharp'>#define</em> NAME_POLL_INTERVAL 15
<a id='L97' name='L97'></a>  97 
<a id='L98' name='L98'></a>  98 <em class='comment'>/* Workgroup state identifiers. */</em>
<a id='L99' name='L99'></a>  99 <em class='sharp'>#define</em> AM_POTENTIAL_MASTER_BROWSER(<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>) ((<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>)-&gt;<a href='../Y/mst_state.html' title='Multiple used in 3 places.'>mst_state</a> == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L140' title='Defined at 140 in src/vfs/smbfs/helpers/include/nameserv.h.'>MST_POTENTIAL</a>)
<a id='L100' name='L100'></a> 100 <em class='sharp'>#define</em> AM_LOCAL_MASTER_BROWSER(<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>) ((<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>)-&gt;<a href='../Y/mst_state.html' title='Multiple used in 3 places.'>mst_state</a> == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L143' title='Defined at 143 in src/vfs/smbfs/helpers/include/nameserv.h.'>MST_BROWSER</a>)
<a id='L101' name='L101'></a> 101 <em class='sharp'>#define</em> AM_DOMAIN_MASTER_BROWSER(<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>) ((<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>)-&gt;<a href='../Y/dom_state.html' title='Multiple used in 2 places.'>dom_state</a> == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L151' title='Defined at 151 in src/vfs/smbfs/helpers/include/nameserv.h.'>DOMAIN_MST</a>)
<a id='L102' name='L102'></a> 102 <em class='sharp'>#define</em> AM_DOMAIN_MEMBER(<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>) ((<a href='../Y/work.html' title='Multiple used in 4 places.'>work</a>)-&gt;<a href='../Y/log_state.html' title='Multiple used in 2 places.'>log_state</a> == <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L158' title='Defined at 158 in src/vfs/smbfs/helpers/include/nameserv.h.'>LOGON_SRV</a>)
<a id='L103' name='L103'></a> 103 
<a id='L104' name='L104'></a> 104 <em class='comment'>/* Microsoft browser NetBIOS name. */</em>
<a id='L105' name='L105'></a> 105 <em class='sharp'>#define</em> MSBROWSE "\001\002__MSBROWSE__\002"
<a id='L106' name='L106'></a> 106 
<a id='L107' name='L107'></a> 107 <em class='comment'>/* Mail slots. */</em>
<a id='L108' name='L108'></a> 108 <em class='sharp'>#define</em> BROWSE_MAILSLOT    "\\MAILSLOT\\BROWSE"
<a id='L109' name='L109'></a> 109 <em class='sharp'>#define</em> NET_LOGON_MAILSLOT "\\MAILSLOT\\NET\\NETLOGON"
<a id='L110' name='L110'></a> 110 <em class='sharp'>#define</em> NT_LOGON_MAILSLOT  "\\MAILSLOT\\NET\\NTLOGON"
<a id='L111' name='L111'></a> 111 <em class='sharp'>#define</em> LANMAN_MAILSLOT    "\\MAILSLOT\\LANMAN"
<a id='L112' name='L112'></a> 112 
<a id='L113' name='L113'></a> 113 <em class='comment'>/* Samba definitions for find_name_on_subnet(). */</em>
<a id='L114' name='L114'></a> 114 <em class='sharp'>#define</em> FIND_ANY_NAME   0
<a id='L115' name='L115'></a> 115 <em class='sharp'>#define</em> FIND_SELF_NAME  1
<a id='L116' name='L116'></a> 116 
<a id='L117' name='L117'></a> 117 <em class='comment'>/*</em>
<a id='L118' name='L118'></a> 118 <em class='comment'> * The different name types that can be in namelists.</em>
<a id='L119' name='L119'></a> 119 <em class='comment'> *</em>
<a id='L120' name='L120'></a> 120 <em class='comment'> * SELF_NAME should only be on the broadcast and unicast subnets.</em>
<a id='L121' name='L121'></a> 121 <em class='comment'> * LMHOSTS_NAME should only be in the remote_broadcast_subnet.</em>
<a id='L122' name='L122'></a> 122 <em class='comment'> * REGISTER_NAME, DNS_NAME, DNSFAIL_NAME should only be in the wins_server_subnet.</em>
<a id='L123' name='L123'></a> 123 <em class='comment'> * WINS_PROXY_NAME should only be on the broadcast subnets.</em>
<a id='L124' name='L124'></a> 124 <em class='comment'> * PERMANENT_NAME can be on all subnets except remote_broadcast_subnet.</em>
<a id='L125' name='L125'></a> 125 <em class='comment'> *</em>
<a id='L126' name='L126'></a> 126 <em class='comment'> */</em>
<a id='L127' name='L127'></a> 127 
<a id='L128' name='L128'></a> 128 <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L169' title='Referred from 169 in src/vfs/smbfs/helpers/include/nameserv.h.'>name_source</a>
<a id='L129' name='L129'></a> 129 <em class='brace'>{</em> LMHOSTS_NAME, REGISTER_NAME, SELF_NAME, DNS_NAME,
<a id='L130' name='L130'></a> 130     DNSFAIL_NAME, PERMANENT_NAME, WINS_PROXY_NAME
<a id='L131' name='L131'></a> 131 <em class='brace'>}</em>;
<a id='L132' name='L132'></a> 132 <strong class='reserved'>enum</strong> <a href='../R/node_type.html' title='Multiple referred from 3 places.'>node_type</a>
<a id='L133' name='L133'></a> 133 <em class='brace'>{</em> B_NODE = 0, P_NODE = 1, M_NODE = 2, NBDD_NODE = 3 <em class='brace'>}</em>;
<a id='L134' name='L134'></a> 134 <strong class='reserved'>enum</strong> <a href='../R/packet_type.html' title='Multiple referred from 13 places.'>packet_type</a>
<a id='L135' name='L135'></a> 135 <em class='brace'>{</em> <a href='../R/NMB_PACKET.html' title='Multiple referred from 6 places.'>NMB_PACKET</a>, <a href='../R/DGRAM_PACKET.html' title='Multiple referred from 4 places.'>DGRAM_PACKET</a> <em class='brace'>}</em>;
<a id='L136' name='L136'></a> 136 
<a id='L137' name='L137'></a> 137 <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L200' title='Referred from 200 in src/vfs/smbfs/helpers/include/nameserv.h.'>master_state</a>
<a id='L138' name='L138'></a> 138 <em class='brace'>{</em>
<a id='L139' name='L139'></a> 139     MST_NONE,
<a id='L140' name='L140'></a> 140     <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L99' title='Referred from 99 in src/vfs/smbfs/helpers/include/nameserv.h.'>MST_POTENTIAL</a>,
<a id='L141' name='L141'></a> 141     MST_BACKUP,
<a id='L142' name='L142'></a> 142     MST_MSB,
<a id='L143' name='L143'></a> 143     <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L100' title='Referred from 100 in src/vfs/smbfs/helpers/include/nameserv.h.'>MST_BROWSER</a>,
<a id='L144' name='L144'></a> 144     MST_UNBECOMING_MASTER
<a id='L145' name='L145'></a> 145 <em class='brace'>}</em>;
<a id='L146' name='L146'></a> 146 
<a id='L147' name='L147'></a> 147 <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L203' title='Referred from 203 in src/vfs/smbfs/helpers/include/nameserv.h.'>domain_state</a>
<a id='L148' name='L148'></a> 148 <em class='brace'>{</em>
<a id='L149' name='L149'></a> 149     DOMAIN_NONE,
<a id='L150' name='L150'></a> 150     DOMAIN_WAIT,
<a id='L151' name='L151'></a> 151     <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L101' title='Referred from 101 in src/vfs/smbfs/helpers/include/nameserv.h.'>DOMAIN_MST</a>
<a id='L152' name='L152'></a> 152 <em class='brace'>}</em>;
<a id='L153' name='L153'></a> 153 
<a id='L154' name='L154'></a> 154 <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L206' title='Referred from 206 in src/vfs/smbfs/helpers/include/nameserv.h.'>logon_state</a>
<a id='L155' name='L155'></a> 155 <em class='brace'>{</em>
<a id='L156' name='L156'></a> 156     LOGON_NONE,
<a id='L157' name='L157'></a> 157     LOGON_WAIT,
<a id='L158' name='L158'></a> 158     <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L102' title='Referred from 102 in src/vfs/smbfs/helpers/include/nameserv.h.'>LOGON_SRV</a>
<a id='L159' name='L159'></a> 159 <em class='brace'>}</em>;
<a id='L160' name='L160'></a> 160 
<a id='L161' name='L161'></a> 161 <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a>;
<a id='L162' name='L162'></a> 162 
<a id='L163' name='L163'></a> 163 <strong class='reserved'>struct</strong> nmb_data
<a id='L164' name='L164'></a> 164 <em class='brace'>{</em>
<a id='L165' name='L165'></a> 165     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/nb_flags.html' title='Multiple used in 9 places.'>nb_flags</a>;            <em class='comment'>/* Netbios flags. */</em>
<a id='L166' name='L166'></a> 166     <strong class='reserved'>int</strong> num_ips;                <em class='comment'>/* Number of ip entries. */</em>
<a id='L167' name='L167'></a> 167     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> *<a href='../Y/ip.html' title='Multiple used in 79 places.'>ip</a>;         <em class='comment'>/* The ip list for this name. */</em>
<a id='L168' name='L168'></a> 168 
<a id='L169' name='L169'></a> 169     <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L128' title='Defined at 128 in src/vfs/smbfs/helpers/include/nameserv.h.'>name_source</a> <a href='../Y/source.html' title='Multiple used in 35 places.'>source</a>;    <em class='comment'>/* Where the name came from. */</em>
<a id='L170' name='L170'></a> 170 
<a id='L171' name='L171'></a> 171     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/death_time.html' title='Multiple used in 3 places.'>death_time</a>;          <em class='comment'>/* The time the record must be removed (do not remove if 0). */</em>
<a id='L172' name='L172'></a> 172     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> refresh_time;        <em class='comment'>/* The time the record should be refreshed. */</em>
<a id='L173' name='L173'></a> 173 <em class='brace'>}</em>;
<a id='L174' name='L174'></a> 174 
<a id='L175' name='L175'></a> 175 <em class='comment'>/* This is used to hold the list of servers in my domain, and is</em>
<a id='L176' name='L176'></a> 176 <em class='comment'>   contained within lists of domains. */</em>
<a id='L177' name='L177'></a> 177 
<a id='L178' name='L178'></a> 178 <strong class='reserved'>struct</strong> <a href='../R/server_record.html' title='Multiple referred from 3 places.'>server_record</a>
<a id='L179' name='L179'></a> 179 <em class='brace'>{</em>
<a id='L180' name='L180'></a> 180     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L178' title='Defined at 178 in src/vfs/smbfs/helpers/include/nameserv.h.'>server_record</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>;
<a id='L181' name='L181'></a> 181     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L178' title='Defined at 178 in src/vfs/smbfs/helpers/include/nameserv.h.'>server_record</a> *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L182' name='L182'></a> 182 
<a id='L183' name='L183'></a> 183     <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *<a href='../Y/subnet.html' title='Multiple used in 2 places.'>subnet</a>;
<a id='L184' name='L184'></a> 184 
<a id='L185' name='L185'></a> 185     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L684' title='Defined at 684 in src/vfs/smbfs/helpers/include/smb.h.'>server_info_struct</a> serv;
<a id='L186' name='L186'></a> 186     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/death_time.html' title='Multiple used in 3 places.'>death_time</a>;
<a id='L187' name='L187'></a> 187 <em class='brace'>}</em>;
<a id='L188' name='L188'></a> 188 
<a id='L189' name='L189'></a> 189 <em class='comment'>/* A workgroup structure. It contains a list of servers. */</em>
<a id='L190' name='L190'></a> 190 <strong class='reserved'>struct</strong> <a href='../R/work_record.html' title='Multiple referred from 2 places.'>work_record</a>
<a id='L191' name='L191'></a> 191 <em class='brace'>{</em>
<a id='L192' name='L192'></a> 192     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L190' title='Defined at 190 in src/vfs/smbfs/helpers/include/nameserv.h.'>work_record</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>;
<a id='L193' name='L193'></a> 193     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L190' title='Defined at 190 in src/vfs/smbfs/helpers/include/nameserv.h.'>work_record</a> *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L194' name='L194'></a> 194 
<a id='L195' name='L195'></a> 195     <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *<a href='../Y/subnet.html' title='Multiple used in 2 places.'>subnet</a>;
<a id='L196' name='L196'></a> 196 
<a id='L197' name='L197'></a> 197     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L178' title='Defined at 178 in src/vfs/smbfs/helpers/include/nameserv.h.'>server_record</a> *serverlist;
<a id='L198' name='L198'></a> 198 
<a id='L199' name='L199'></a> 199     <em class='comment'>/* Stage of development from non-local-master up to local-master browser. */</em>
<a id='L200' name='L200'></a> 200     <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L137' title='Defined at 137 in src/vfs/smbfs/helpers/include/nameserv.h.'>master_state</a> <a href='../Y/mst_state.html' title='Multiple used in 3 places.'>mst_state</a>;
<a id='L201' name='L201'></a> 201 
<a id='L202' name='L202'></a> 202     <em class='comment'>/* Stage of development from non-domain-master to domain-master browser. */</em>
<a id='L203' name='L203'></a> 203     <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L147' title='Defined at 147 in src/vfs/smbfs/helpers/include/nameserv.h.'>domain_state</a> <a href='../Y/dom_state.html' title='Multiple used in 2 places.'>dom_state</a>;
<a id='L204' name='L204'></a> 204 
<a id='L205' name='L205'></a> 205     <em class='comment'>/* Stage of development from non-logon-server to logon server. */</em>
<a id='L206' name='L206'></a> 206     <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L154' title='Defined at 154 in src/vfs/smbfs/helpers/include/nameserv.h.'>logon_state</a> <a href='../Y/log_state.html' title='Multiple used in 2 places.'>log_state</a>;
<a id='L207' name='L207'></a> 207 
<a id='L208' name='L208'></a> 208     <em class='comment'>/* Work group info. */</em>
<a id='L209' name='L209'></a> 209     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> work_group;
<a id='L210' name='L210'></a> 210     <strong class='reserved'>int</strong> <a href='../Y/token.html' title='Multiple used in 9 places.'>token</a>;                  <em class='comment'>/* Used when communicating with backup browsers. */</em>
<a id='L211' name='L211'></a> 211     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> local_master_browser_name;  <em class='comment'>/* Current local master browser. */</em>
<a id='L212' name='L212'></a> 212 
<a id='L213' name='L213'></a> 213     <em class='comment'>/* Announce info. */</em>
<a id='L214' name='L214'></a> 214     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> lastannounce_time;
<a id='L215' name='L215'></a> 215     <strong class='reserved'>int</strong> announce_interval;
<a id='L216' name='L216'></a> 216     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> needannounce;
<a id='L217' name='L217'></a> 217 
<a id='L218' name='L218'></a> 218     <em class='comment'>/* Timeout time for this workgroup. 0 means permanent. */</em>
<a id='L219' name='L219'></a> 219     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/death_time.html' title='Multiple used in 3 places.'>death_time</a>;
<a id='L220' name='L220'></a> 220 
<a id='L221' name='L221'></a> 221     <em class='comment'>/* Election info */</em>
<a id='L222' name='L222'></a> 222     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> RunningElection;
<a id='L223' name='L223'></a> 223     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> needelection;
<a id='L224' name='L224'></a> 224     <strong class='reserved'>int</strong> ElectionCount;
<a id='L225' name='L225'></a> 225     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> ElectionCriterion;
<a id='L226' name='L226'></a> 226 
<a id='L227' name='L227'></a> 227     <em class='comment'>/* Domain master browser info. Used for efficient syncs. */</em>
<a id='L228' name='L228'></a> 228     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> dmb_name;
<a id='L229' name='L229'></a> 229     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> dmb_addr;
<a id='L230' name='L230'></a> 230 <em class='brace'>}</em>;
<a id='L231' name='L231'></a> 231 
<a id='L232' name='L232'></a> 232 <em class='comment'>/* typedefs needed to define copy &amp; free functions for userdata. */</em>
<a id='L233' name='L233'></a> 233 <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a>;
<a id='L234' name='L234'></a> 234 
<a id='L235' name='L235'></a> 235 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/userdata_struct.html' title='Multiple referred from 10 places.'>userdata_struct</a> *(*<a href='../Y/userdata_copy_fn.html' title='Multiple used in 2 places.'>userdata_copy_fn</a>) (<strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *);
<a id='L236' name='L236'></a> 236 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*<a href='../Y/userdata_free_fn.html' title='Multiple used in 2 places.'>userdata_free_fn</a>) (<strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *);
<a id='L237' name='L237'></a> 237 
<a id='L238' name='L238'></a> 238 <em class='comment'>/* Structure to define any userdata passed around. */</em>
<a id='L239' name='L239'></a> 239 
<a id='L240' name='L240'></a> 240 <strong class='reserved'>struct</strong> <a href='../R/userdata_struct.html' title='Multiple referred from 10 places.'>userdata_struct</a>
<a id='L241' name='L241'></a> 241 <em class='brace'>{</em>
<a id='L242' name='L242'></a> 242     <a href='../Y/userdata_copy_fn.html' title='Multiple used in 2 places.'>userdata_copy_fn</a> copy_fn;
<a id='L243' name='L243'></a> 243     <a href='../Y/userdata_free_fn.html' title='Multiple used in 2 places.'>userdata_free_fn</a> free_fn;
<a id='L244' name='L244'></a> 244     <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> userdata_len;
<a id='L245' name='L245'></a> 245     <strong class='reserved'>char</strong> <a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>[16];              <em class='comment'>/* 16 is to ensure alignment/padding on all systems */</em>
<a id='L246' name='L246'></a> 246 <em class='brace'>}</em>;
<a id='L247' name='L247'></a> 247 
<a id='L248' name='L248'></a> 248 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a>;
<a id='L249' name='L249'></a> 249 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L423' title='Defined at 423 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_struct</a>;
<a id='L250' name='L250'></a> 250 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a>;
<a id='L251' name='L251'></a> 251 
<a id='L252' name='L252'></a> 252 <em class='comment'>/* typedef to define the function called when this response packet comes in. */</em>
<a id='L253' name='L253'></a> 253 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*<a href='../Y/response_function.html' title='Multiple used in 2 places.'>response_function</a>) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *,
<a id='L254' name='L254'></a> 254                                    <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L423' title='Defined at 423 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_struct</a> *);
<a id='L255' name='L255'></a> 255 
<a id='L256' name='L256'></a> 256 <em class='comment'>/* typedef to define the function called when this response record times out. */</em>
<a id='L257' name='L257'></a> 257 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*<a href='../Y/timeout_response_function.html' title='Multiple used in 2 places.'>timeout_response_function</a>) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *);
<a id='L258' name='L258'></a> 258 
<a id='L259' name='L259'></a> 259 <em class='comment'>/* typedef to define the function called when the request that caused this</em>
<a id='L260' name='L260'></a> 260 <em class='comment'>   response record to be created is successful. */</em>
<a id='L261' name='L261'></a> 261 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*<a href='../Y/success_function.html' title='Multiple used in 2 places.'>success_function</a>) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *, <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *, ...);
<a id='L262' name='L262'></a> 262 
<a id='L263' name='L263'></a> 263 <em class='comment'>/* typedef to define the function called when the request that caused this</em>
<a id='L264' name='L264'></a> 264 <em class='comment'>   response record to be created is unsuccessful. */</em>
<a id='L265' name='L265'></a> 265 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*<a href='../Y/fail_function.html' title='Multiple used in 2 places.'>fail_function</a>) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *, ...);
<a id='L266' name='L266'></a> 266 
<a id='L267' name='L267'></a> 267 <em class='comment'>/* List of typedefs for success and fail functions of the different query</em>
<a id='L268' name='L268'></a> 268 <em class='comment'>   types. Used to catch any compile time prototype errors. */</em>
<a id='L269' name='L269'></a> 269 
<a id='L270' name='L270'></a> 270 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*register_name_success_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L271' name='L271'></a> 271                                                 <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *,
<a id='L272' name='L272'></a> 272                                                 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *, <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>, <strong class='reserved'>int</strong>, <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a>);
<a id='L273' name='L273'></a> 273 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*register_name_fail_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L274' name='L274'></a> 274                                              <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *);
<a id='L275' name='L275'></a> 275 
<a id='L276' name='L276'></a> 276 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*release_name_success_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L277' name='L277'></a> 277                                                <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *,
<a id='L278' name='L278'></a> 278                                                <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *, <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a>);
<a id='L279' name='L279'></a> 279 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*release_name_fail_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L280' name='L280'></a> 280                                             <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *);
<a id='L281' name='L281'></a> 281 
<a id='L282' name='L282'></a> 282 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*refresh_name_success_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L283' name='L283'></a> 283                                                <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *,
<a id='L284' name='L284'></a> 284                                                <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *, <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>, <strong class='reserved'>int</strong>, <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a>);
<a id='L285' name='L285'></a> 285 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*refresh_name_fail_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L286' name='L286'></a> 286                                             <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *);
<a id='L287' name='L287'></a> 287 
<a id='L288' name='L288'></a> 288 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*query_name_success_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L289' name='L289'></a> 289                                              <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *,
<a id='L290' name='L290'></a> 290                                              <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *,
<a id='L291' name='L291'></a> 291                                              <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a>, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a> * <a href='../Y/answers.html' title='Multiple used in 17 places.'>answers</a>);
<a id='L292' name='L292'></a> 292 
<a id='L293' name='L293'></a> 293 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*query_name_fail_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L294' name='L294'></a> 294                                           <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> *, <strong class='reserved'>int</strong>);
<a id='L295' name='L295'></a> 295 
<a id='L296' name='L296'></a> 296 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*node_status_success_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *,
<a id='L297' name='L297'></a> 297                                               <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *,
<a id='L298' name='L298'></a> 298                                               <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a> *, <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a>);
<a id='L299' name='L299'></a> 299 <strong class='reserved'>typedef</strong> <strong class='reserved'>void</strong> (*node_status_fail_function) (<strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *, <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *);
<a id='L300' name='L300'></a> 300 
<a id='L301' name='L301'></a> 301 <em class='comment'>/* Initiated name queries are recorded in this list to track any responses. */</em>
<a id='L302' name='L302'></a> 302 
<a id='L303' name='L303'></a> 303 <strong class='reserved'>struct</strong> <a href='../R/response_record.html' title='Multiple referred from 11 places.'>response_record</a>
<a id='L304' name='L304'></a> 304 <em class='brace'>{</em>
<a id='L305' name='L305'></a> 305     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>;
<a id='L306' name='L306'></a> 306     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L303' title='Defined at 303 in src/vfs/smbfs/helpers/include/nameserv.h.'>response_record</a> *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L307' name='L307'></a> 307 
<a id='L308' name='L308'></a> 308     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> response_id;
<a id='L309' name='L309'></a> 309 
<a id='L310' name='L310'></a> 310     <em class='comment'>/* Callbacks for packets received or not. */</em>
<a id='L311' name='L311'></a> 311     <a href='../Y/response_function.html' title='Multiple used in 2 places.'>response_function</a> resp_fn;
<a id='L312' name='L312'></a> 312     <a href='../Y/timeout_response_function.html' title='Multiple used in 2 places.'>timeout_response_function</a> timeout_fn;
<a id='L313' name='L313'></a> 313 
<a id='L314' name='L314'></a> 314     <em class='comment'>/* Callbacks for the request succeeding or not. */</em>
<a id='L315' name='L315'></a> 315     <a href='../Y/success_function.html' title='Multiple used in 2 places.'>success_function</a> success_fn;
<a id='L316' name='L316'></a> 316     <a href='../Y/fail_function.html' title='Multiple used in 2 places.'>fail_function</a> fail_fn;
<a id='L317' name='L317'></a> 317 
<a id='L318' name='L318'></a> 318     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L423' title='Defined at 423 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_struct</a> *<a href='../Y/packet.html' title='Multiple used in 46 places.'>packet</a>;
<a id='L319' name='L319'></a> 319 
<a id='L320' name='L320'></a> 320     <strong class='reserved'>struct</strong> <a href='../D/userdata_struct.html' title='Multiple defined in 2 places.'>userdata_struct</a> *userdata;
<a id='L321' name='L321'></a> 321 
<a id='L322' name='L322'></a> 322     <strong class='reserved'>int</strong> num_msgs;
<a id='L323' name='L323'></a> 323 
<a id='L324' name='L324'></a> 324     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> repeat_time;
<a id='L325' name='L325'></a> 325     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> repeat_interval;
<a id='L326' name='L326'></a> 326     <strong class='reserved'>int</strong> repeat_count;
<a id='L327' name='L327'></a> 327 
<a id='L328' name='L328'></a> 328     <em class='comment'>/* Recursion protection. */</em>
<a id='L329' name='L329'></a> 329     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> in_expiration_processing;
<a id='L330' name='L330'></a> 330 <em class='brace'>}</em>;
<a id='L331' name='L331'></a> 331 
<a id='L332' name='L332'></a> 332 <em class='comment'>/* A subnet structure. It contains a list of workgroups and netbios names. */</em>
<a id='L333' name='L333'></a> 333 
<a id='L334' name='L334'></a> 334 <em class='comment'>/*</em>
<a id='L335' name='L335'></a> 335 <em class='comment'>   B nodes will have their own, totally separate subnet record, with their</em>
<a id='L336' name='L336'></a> 336 <em class='comment'>   own netbios name set. These do NOT interact with other subnet records'</em>
<a id='L337' name='L337'></a> 337 <em class='comment'>   netbios names.</em>
<a id='L338' name='L338'></a> 338 <em class='comment'> */</em>
<a id='L339' name='L339'></a> 339 
<a id='L340' name='L340'></a> 340 <strong class='reserved'>enum</strong> subnet_type
<a id='L341' name='L341'></a> 341 <em class='brace'>{</em>
<a id='L342' name='L342'></a> 342     NORMAL_SUBNET = 0,          <em class='comment'>/* Subnet listed in interfaces list. */</em>
<a id='L343' name='L343'></a> 343     UNICAST_SUBNET = 1,         <em class='comment'>/* Subnet for unicast packets. */</em>
<a id='L344' name='L344'></a> 344     REMOTE_BROADCAST_SUBNET = 2,        <em class='comment'>/* Subnet for remote broadcasts. */</em>
<a id='L345' name='L345'></a> 345     WINS_SERVER_SUBNET = 3      <em class='comment'>/* Only created if we are a WINS server. */</em>
<a id='L346' name='L346'></a> 346 <em class='brace'>}</em>;
<a id='L347' name='L347'></a> 347 
<a id='L348' name='L348'></a> 348 <em class='comment'>/* A resource record. */</em>
<a id='L349' name='L349'></a> 349 <strong class='reserved'>struct</strong> <a href='../R/res_rec.html' title='Multiple referred from 20 places.'>res_rec</a>
<a id='L350' name='L350'></a> 350 <em class='brace'>{</em>
<a id='L351' name='L351'></a> 351     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> <a href='../Y/rr_name.html' title='Multiple used in 4 places.'>rr_name</a>;
<a id='L352' name='L352'></a> 352     <strong class='reserved'>int</strong> <a href='../Y/rr_type.html' title='Multiple used in 5 places.'>rr_type</a>;
<a id='L353' name='L353'></a> 353     <strong class='reserved'>int</strong> <a href='../Y/rr_class.html' title='Multiple used in 5 places.'>rr_class</a>;
<a id='L354' name='L354'></a> 354     <strong class='reserved'>int</strong> <a href='../Y/ttl.html' title='Multiple used in 5 places.'>ttl</a>;
<a id='L355' name='L355'></a> 355     <strong class='reserved'>int</strong> <a href='../Y/rdlength.html' title='Multiple used in 20 places.'>rdlength</a>;
<a id='L356' name='L356'></a> 356     <strong class='reserved'>char</strong> <a href='../Y/rdata.html' title='Multiple used in 74 places.'>rdata</a>[<a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L15' title='Defined at 15 in src/vfs/smbfs/helpers/include/nameserv.h.'>MAX_DGRAM_SIZE</a>];
<a id='L357' name='L357'></a> 357 <em class='brace'>}</em>;
<a id='L358' name='L358'></a> 358 
<a id='L359' name='L359'></a> 359 <em class='comment'>/* An nmb packet. */</em>
<a id='L360' name='L360'></a> 360 <strong class='reserved'>struct</strong> <a href='../R/nmb_packet.html' title='Multiple referred from 9 places.'>nmb_packet</a>
<a id='L361' name='L361'></a> 361 <em class='brace'>{</em>
<a id='L362' name='L362'></a> 362     <strong class='reserved'>struct</strong>
<a id='L363' name='L363'></a> 363     <em class='brace'>{</em>
<a id='L364' name='L364'></a> 364         <strong class='reserved'>int</strong> <a href='../Y/name_trn_id.html' title='Multiple used in 12 places.'>name_trn_id</a>;
<a id='L365' name='L365'></a> 365         <strong class='reserved'>int</strong> <a href='../Y/opcode.html' title='Multiple used in 15 places.'>opcode</a>;
<a id='L366' name='L366'></a> 366         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/response.html' title='Multiple used in 9 places.'>response</a>;
<a id='L367' name='L367'></a> 367         <strong class='reserved'>struct</strong>
<a id='L368' name='L368'></a> 368         <em class='brace'>{</em>
<a id='L369' name='L369'></a> 369             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/bcast.html' title='Multiple used in 23 places.'>bcast</a>;
<a id='L370' name='L370'></a> 370             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/recursion_available.html' title='Multiple used in 5 places.'>recursion_available</a>;
<a id='L371' name='L371'></a> 371             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/recursion_desired.html' title='Multiple used in 5 places.'>recursion_desired</a>;
<a id='L372' name='L372'></a> 372             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/trunc.html' title='Multiple used in 10 places.'>trunc</a>;
<a id='L373' name='L373'></a> 373             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/authoritative.html' title='Multiple used in 5 places.'>authoritative</a>;
<a id='L374' name='L374'></a> 374         <em class='brace'>}</em> <a href='../Y/nm_flags.html' title='Multiple used in 24 places.'>nm_flags</a>;
<a id='L375' name='L375'></a> 375         <strong class='reserved'>int</strong> <a href='../Y/rcode.html' title='Multiple used in 6 places.'>rcode</a>;
<a id='L376' name='L376'></a> 376         <strong class='reserved'>int</strong> <a href='../Y/qdcount.html' title='Multiple used in 8 places.'>qdcount</a>;
<a id='L377' name='L377'></a> 377         <strong class='reserved'>int</strong> <a href='../Y/ancount.html' title='Multiple used in 13 places.'>ancount</a>;
<a id='L378' name='L378'></a> 378         <strong class='reserved'>int</strong> <a href='../Y/nscount.html' title='Multiple used in 12 places.'>nscount</a>;
<a id='L379' name='L379'></a> 379         <strong class='reserved'>int</strong> <a href='../Y/arcount.html' title='Multiple used in 13 places.'>arcount</a>;
<a id='L380' name='L380'></a> 380     <em class='brace'>}</em> <a href='../Y/header.html' title='Multiple used in 204 places.'>header</a>;
<a id='L381' name='L381'></a> 381 
<a id='L382' name='L382'></a> 382     <strong class='reserved'>struct</strong>
<a id='L383' name='L383'></a> 383     <em class='brace'>{</em>
<a id='L384' name='L384'></a> 384         <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> <a href='../Y/question_name.html' title='Multiple used in 5 places.'>question_name</a>;
<a id='L385' name='L385'></a> 385         <strong class='reserved'>int</strong> <a href='../Y/question_type.html' title='Multiple used in 5 places.'>question_type</a>;
<a id='L386' name='L386'></a> 386         <strong class='reserved'>int</strong> <a href='../Y/question_class.html' title='Multiple used in 5 places.'>question_class</a>;
<a id='L387' name='L387'></a> 387     <em class='brace'>}</em> <a href='../Y/question.html' title='Multiple used in 12 places.'>question</a>;
<a id='L388' name='L388'></a> 388 
<a id='L389' name='L389'></a> 389     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a> *<a href='../Y/answers.html' title='Multiple used in 17 places.'>answers</a>;
<a id='L390' name='L390'></a> 390     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a> *<a href='../Y/nsrecs.html' title='Multiple used in 13 places.'>nsrecs</a>;
<a id='L391' name='L391'></a> 391     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/nameserv.h.'>res_rec</a> *<a href='../Y/additional.html' title='Multiple used in 14 places.'>additional</a>;
<a id='L392' name='L392'></a> 392 <em class='brace'>}</em>;
<a id='L393' name='L393'></a> 393 
<a id='L394' name='L394'></a> 394 
<a id='L395' name='L395'></a> 395 <em class='comment'>/* A datagram - this normally contains SMB data in the data[] array. */</em>
<a id='L396' name='L396'></a> 396 
<a id='L397' name='L397'></a> 397 <strong class='reserved'>struct</strong> <a href='../R/dgram_packet.html' title='Multiple referred from 4 places.'>dgram_packet</a>
<a id='L398' name='L398'></a> 398 <em class='brace'>{</em>
<a id='L399' name='L399'></a> 399     <strong class='reserved'>struct</strong>
<a id='L400' name='L400'></a> 400     <em class='brace'>{</em>
<a id='L401' name='L401'></a> 401         <strong class='reserved'>int</strong> <a href='../Y/msg_type.html' title='Multiple used in 10 places.'>msg_type</a>;
<a id='L402' name='L402'></a> 402         <strong class='reserved'>struct</strong>
<a id='L403' name='L403'></a> 403         <em class='brace'>{</em>
<a id='L404' name='L404'></a> 404             <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L132' title='Defined at 132 in src/vfs/smbfs/helpers/include/nameserv.h.'>node_type</a> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L132' title='Defined at 132 in src/vfs/smbfs/helpers/include/nameserv.h.'>node_type</a>;
<a id='L405' name='L405'></a> 405             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/first.html' title='Multiple used in 49 places.'>first</a>;
<a id='L406' name='L406'></a> 406             <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/more.html' title='Multiple used in 3 places.'>more</a>;
<a id='L407' name='L407'></a> 407         <em class='brace'>}</em> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>;
<a id='L408' name='L408'></a> 408         <strong class='reserved'>int</strong> <a href='../Y/dgm_id.html' title='Multiple used in 3 places.'>dgm_id</a>;
<a id='L409' name='L409'></a> 409         <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> <a href='../Y/source_ip.html' title='Multiple used in 3 places.'>source_ip</a>;
<a id='L410' name='L410'></a> 410         <strong class='reserved'>int</strong> <a href='../Y/source_port.html' title='Multiple used in 3 places.'>source_port</a>;
<a id='L411' name='L411'></a> 411         <strong class='reserved'>int</strong> <a href='../Y/dgm_length.html' title='Multiple used in 4 places.'>dgm_length</a>;
<a id='L412' name='L412'></a> 412         <strong class='reserved'>int</strong> <a href='../Y/packet_offset.html' title='Multiple used in 3 places.'>packet_offset</a>;
<a id='L413' name='L413'></a> 413     <em class='brace'>}</em> <a href='../Y/header.html' title='Multiple used in 204 places.'>header</a>;
<a id='L414' name='L414'></a> 414     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> <a href='../Y/source_name.html' title='Multiple used in 7 places.'>source_name</a>;
<a id='L415' name='L415'></a> 415     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1703' title='Defined at 1703 in src/vfs/smbfs/helpers/include/smb.h.'>nmb_name</a> <a href='../Y/dest_name.html' title='Multiple used in 3 places.'>dest_name</a>;
<a id='L416' name='L416'></a> 416     <strong class='reserved'>int</strong> <a href='../Y/datasize.html' title='Multiple used in 5 places.'>datasize</a>;
<a id='L417' name='L417'></a> 417     <strong class='reserved'>char</strong> <a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>[<a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L15' title='Defined at 15 in src/vfs/smbfs/helpers/include/nameserv.h.'>MAX_DGRAM_SIZE</a>];
<a id='L418' name='L418'></a> 418 <em class='brace'>}</em>;
<a id='L419' name='L419'></a> 419 
<a id='L420' name='L420'></a> 420 <em class='comment'>/* Define a structure used to queue packets. This will be a linked</em>
<a id='L421' name='L421'></a> 421 <em class='comment'>   list of nmb packets. */</em>
<a id='L422' name='L422'></a> 422 
<a id='L423' name='L423'></a> 423 <strong class='reserved'>struct</strong> <a href='../R/packet_struct.html' title='Multiple referred from 34 places.'>packet_struct</a>
<a id='L424' name='L424'></a> 424 <em class='brace'>{</em>
<a id='L425' name='L425'></a> 425     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L423' title='Defined at 423 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_struct</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>;
<a id='L426' name='L426'></a> 426     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L423' title='Defined at 423 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_struct</a> *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L427' name='L427'></a> 427     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/locked.html' title='Multiple used in 30 places.'>locked</a>;
<a id='L428' name='L428'></a> 428     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> <a href='../Y/ip.html' title='Multiple used in 79 places.'>ip</a>;
<a id='L429' name='L429'></a> 429     <strong class='reserved'>int</strong> <a href='../Y/port.html' title='Multiple used in 111 places.'>port</a>;
<a id='L430' name='L430'></a> 430     <strong class='reserved'>int</strong> <a href='../Y/fd.html' title='Multiple used in 422 places.'>fd</a>;
<a id='L431' name='L431'></a> 431     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/timestamp.html' title='Multiple used in 20 places.'>timestamp</a>;
<a id='L432' name='L432'></a> 432     <strong class='reserved'>enum</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L134' title='Defined at 134 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_type</a> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L134' title='Defined at 134 in src/vfs/smbfs/helpers/include/nameserv.h.'>packet_type</a>;
<a id='L433' name='L433'></a> 433     <strong class='reserved'>union</strong>
<a id='L434' name='L434'></a> 434     <em class='brace'>{</em>
<a id='L435' name='L435'></a> 435         <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L360' title='Defined at 360 in src/vfs/smbfs/helpers/include/nameserv.h.'>nmb_packet</a> <a href='../Y/nmb.html' title='Multiple used in 125 places.'>nmb</a>;
<a id='L436' name='L436'></a> 436         <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L397' title='Defined at 397 in src/vfs/smbfs/helpers/include/nameserv.h.'>dgram_packet</a> <a href='../Y/dgram.html' title='Multiple used in 38 places.'>dgram</a>;
<a id='L437' name='L437'></a> 437     <em class='brace'>}</em> <a href='../Y/packet.html' title='Multiple used in 46 places.'>packet</a>;
<a id='L438' name='L438'></a> 438 <em class='brace'>}</em>;
<a id='L439' name='L439'></a> 439 
<a id='L440' name='L440'></a> 440 <em class='comment'>/* NETLOGON opcodes */</em>
<a id='L441' name='L441'></a> 441 
<a id='L442' name='L442'></a> 442 <em class='sharp'>#define</em> QUERYFORPDC      7      <em class='comment'>/* Query for PDC. */</em>
<a id='L443' name='L443'></a> 443 <em class='sharp'>#define</em> QUERYFORPDC_R   12      <em class='comment'>/* Response to Query for PDC. */</em>
<a id='L444' name='L444'></a> 444 <em class='sharp'>#define</em> SAMLOGON        18
<a id='L445' name='L445'></a> 445 <em class='sharp'>#define</em> SAMLOGON_R      19
<a id='L446' name='L446'></a> 446 
<a id='L447' name='L447'></a> 447 
<a id='L448' name='L448'></a> 448 <em class='comment'>/* Ids for netbios packet types. */</em>
<a id='L449' name='L449'></a> 449 
<a id='L450' name='L450'></a> 450 <em class='sharp'>#define</em> ANN_HostAnnouncement         1
<a id='L451' name='L451'></a> 451 <em class='sharp'>#define</em> ANN_AnnouncementRequest      2
<a id='L452' name='L452'></a> 452 <em class='sharp'>#define</em> ANN_Election                 8
<a id='L453' name='L453'></a> 453 <em class='sharp'>#define</em> ANN_GetBackupListReq         9
<a id='L454' name='L454'></a> 454 <em class='sharp'>#define</em> ANN_GetBackupListResp       10
<a id='L455' name='L455'></a> 455 <em class='sharp'>#define</em> ANN_BecomeBackup            11
<a id='L456' name='L456'></a> 456 <em class='sharp'>#define</em> ANN_DomainAnnouncement      12
<a id='L457' name='L457'></a> 457 <em class='sharp'>#define</em> ANN_MasterAnnouncement      13
<a id='L458' name='L458'></a> 458 <em class='sharp'>#define</em> ANN_ResetBrowserState       14
<a id='L459' name='L459'></a> 459 <em class='sharp'>#define</em> ANN_LocalMasterAnnouncement 15
<a id='L460' name='L460'></a> 460 
<a id='L461' name='L461'></a> 461 
<a id='L462' name='L462'></a> 462 <em class='comment'>/* Broadcast packet announcement intervals, in minutes. */</em>
<a id='L463' name='L463'></a> 463 
<a id='L464' name='L464'></a> 464 <em class='comment'>/* Attempt to add domain logon and domain master names. */</em>
<a id='L465' name='L465'></a> 465 <em class='sharp'>#define</em> CHECK_TIME_ADD_DOM_NAMES 5
<a id='L466' name='L466'></a> 466 
<a id='L467' name='L467'></a> 467 <em class='comment'>/* Search for master browsers of workgroups samba knows about, </em>
<a id='L468' name='L468'></a> 468 <em class='comment'>   except default. */</em>
<a id='L469' name='L469'></a> 469 <em class='sharp'>#define</em> CHECK_TIME_MST_BROWSE       5
<a id='L470' name='L470'></a> 470 
<a id='L471' name='L471'></a> 471 <em class='comment'>/* Request backup browser announcements from other servers. */</em>
<a id='L472' name='L472'></a> 472 <em class='sharp'>#define</em> CHECK_TIME_ANNOUNCE_BACKUP 15
<a id='L473' name='L473'></a> 473 
<a id='L474' name='L474'></a> 474 <em class='comment'>/* Request host announcements from other servers: min and max of interval. */</em>
<a id='L475' name='L475'></a> 475 <em class='sharp'>#define</em> CHECK_TIME_MIN_HOST_ANNCE   3
<a id='L476' name='L476'></a> 476 <em class='sharp'>#define</em> CHECK_TIME_MAX_HOST_ANNCE  12
<a id='L477' name='L477'></a> 477 
<a id='L478' name='L478'></a> 478 <em class='comment'>/* Announce as master to WINS server and any Primary Domain Controllers. */</em>
<a id='L479' name='L479'></a> 479 <em class='sharp'>#define</em> CHECK_TIME_MST_ANNOUNCE    15
<a id='L480' name='L480'></a> 480 
<a id='L481' name='L481'></a> 481 <em class='comment'>/* Time between syncs from domain master browser to local master browsers. */</em>
<a id='L482' name='L482'></a> 482 <em class='sharp'>#define</em> CHECK_TIME_DMB_TO_LMB_SYNC    15
<a id='L483' name='L483'></a> 483 
<a id='L484' name='L484'></a> 484 <em class='comment'>/* Do all remote announcements this often. */</em>
<a id='L485' name='L485'></a> 485 <em class='sharp'>#define</em> REMOTE_ANNOUNCE_INTERVAL 180
<a id='L486' name='L486'></a> 486 
<a id='L487' name='L487'></a> 487 <em class='comment'>/* what is the maximum period between name refreshes. Note that this only</em>
<a id='L488' name='L488'></a> 488 <em class='comment'>   affects non-permanent self names (in seconds) */</em>
<a id='L489' name='L489'></a> 489 <em class='sharp'>#define</em> MAX_REFRESH_TIME (60*20)
<a id='L490' name='L490'></a> 490 
<a id='L491' name='L491'></a> 491 <em class='comment'>/* Macro's to enumerate subnets either with or without</em>
<a id='L492' name='L492'></a> 492 <em class='comment'>   the UNICAST subnet. */</em>
<a id='L493' name='L493'></a> 493 
<a id='L494' name='L494'></a> 494 <strong class='reserved'>extern</strong> <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *<a href='../Y/subnetlist.html' title='Multiple used in 2 places.'>subnetlist</a>;
<a id='L495' name='L495'></a> 495 <strong class='reserved'>extern</strong> <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *unicast_subnet;
<a id='L496' name='L496'></a> 496 <strong class='reserved'>extern</strong> <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *wins_server_subnet;
<a id='L497' name='L497'></a> 497 <strong class='reserved'>extern</strong> <strong class='reserved'>struct</strong> <a href='../Y/subnet_record.html' title='Multiple used in 21 places.'>subnet_record</a> *remote_broadcast_subnet;
<a id='L498' name='L498'></a> 498 
<a id='L499' name='L499'></a> 499 <em class='sharp'>#define</em> FIRST_SUBNET <a href='../Y/subnetlist.html' title='Multiple used in 2 places.'>subnetlist</a>
<a id='L500' name='L500'></a> 500 <em class='sharp'>#define</em> NEXT_SUBNET_EXCLUDING_UNICAST(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)-&gt;<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>)
<a id='L501' name='L501'></a> 501 <em class='sharp'>#define</em> NEXT_SUBNET_INCLUDING_UNICAST(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) (get_next_subnet_maybe_unicast((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)))
<a id='L502' name='L502'></a> 502 
<a id='L503' name='L503'></a> 503 <em class='comment'>/* To be removed. */</em>
<a id='L504' name='L504'></a> 504 <strong class='reserved'>enum</strong> state_type
<a id='L505' name='L505'></a> 505 <em class='brace'>{</em> TEST <em class='brace'>}</em>;
<a id='L506' name='L506'></a> 506 <em class='sharp'>#endif</em> <em class='comment'>/* _NAMESERV_H_ */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+506 src/vfs/smbfs/helpers/include/nameserv.h'  /> */</em>
</body>
</html>
